package com.hoshiicloud.payment.feign;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.payment.Platform;
import com.hoshiicloud.payment.feign.fallback.UserFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: hoshiicloud
 * @description: 平台服务rpc
 * @author: Mr.wu
 * @create: 2019-05-27 09:24
 **/
@FeignClient(name = "hoshiicloud-user", fallbackFactory = UserFeignFallbackFactory.class)
public interface UserFeignService {

    @GetMapping("/platform/platform/{id}")
    Response<Platform> getById(@PathVariable("id") Long id);
}
